package com.ruoyi.applet.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品规格关联对象 product_specs
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
public class ProductSpecs extends BaseEntity
{


    /** 关联id */
    private Long productSpecId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 规格值id */
    @Excel(name = "规格值id")
    private Long productSpecValueId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long productStock;

    /** 库存单位(sku) */
    @Excel(name = "库存单位(sku)")
    private String productSku;

    /** 价钱整数 */
    @Excel(name = "价钱整数")
    private Long productNumber;

    /** 价钱小数 */
    @Excel(name = "价钱小数")
    private Long productDecimal;

    public ProductSpecs() {
    }

    public ProductSpecs( Long productSpecId, Long productId, Long productSpecValueId, Long productStock, String productSku, Long productNumber, Long productDecimal) {
        this.productSpecId = productSpecId;
        this.productId = productId;
        this.productSpecValueId = productSpecValueId;
        this.productStock = productStock;
        this.productSku = productSku;
        this.productNumber = productNumber;
        this.productDecimal = productDecimal;
    }

    public void setProductSpecId(Long productSpecId) 
    {
        this.productSpecId = productSpecId;
    }

    public Long getProductSpecId() 
    {
        return productSpecId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductSpecValueId(Long productSpecValueId) 
    {
        this.productSpecValueId = productSpecValueId;
    }

    public Long getProductSpecValueId() 
    {
        return productSpecValueId;
    }
    public void setProductStock(Long productStock) 
    {
        this.productStock = productStock;
    }

    public Long getProductStock() 
    {
        return productStock;
    }
    public void setProductSku(String productSku) 
    {
        this.productSku = productSku;
    }

    public String getProductSku() 
    {
        return productSku;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productSpecId", getProductSpecId())
            .append("productId", getProductId())
            .append("productSpecValueId", getProductSpecValueId())
            .append("productStock", getProductStock())
            .append("productSku", getProductSku())
            .toString();
    }

    /**
     * 获取
     * @return productNumber
     */
    public Long getProductNumber() {
        return productNumber;
    }

    /**
     * 设置
     * @param productNumber
     */
    public void setProductNumber(Long productNumber) {
        this.productNumber = productNumber;
    }

    /**
     * 获取
     * @return productDecimal
     */
    public Long getProductDecimal() {
        return productDecimal;
    }

    /**
     * 设置
     * @param productDecimal
     */
    public void setProductDecimal(Long productDecimal) {
        this.productDecimal = productDecimal;
    }
}
